package com.service.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.SpecialDao;
import com.entity.Special;
import com.entity.Data.PagerData;
import com.entity.Query.SpecialQuery;
import com.service.SpecialService;

@Service
public class SpecialServiceImpl implements SpecialService{

	@Autowired
	private SpecialDao specialDao;
	@Override
	public List<Map<String, Object>> querySpecial() {
		// TODO Auto-generated method stub
		return specialDao.querySpecial();
	}

	@Override
	public Map<String, Object> querySpecialId(int specialId) {
		// TODO Auto-generated method stub
		return specialDao.querySpecialId(specialId);
	}

	@Override
	public int addSpecial(Special special) {
		// TODO Auto-generated method stub
		return specialDao.addSpecial(special);
	}

	@Override
	public int editSpecial(Special special) {
		// TODO Auto-generated method stub
		return specialDao.editSpecial(special);
	}

	@Override
	public int delSpecial(int specialId) {
		// TODO Auto-generated method stub
		return specialDao.delSpecial(specialId);
	}

	@Override
	public PagerData queryByPage(SpecialQuery specialQuery, int curPage, int pageSize) {
		// TODO Auto-generated method stub
		return specialDao.queryByPage(specialQuery, curPage, pageSize);
	}

}
